package com.zzyl.nursing.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zzyl.nursing.dto.MemberDto;
import com.zzyl.nursing.mapper.MemberOrderMapper;
import com.zzyl.nursing.service.MemberOrdersService;
import com.zzyl.serve.domain.NursingProject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author zzq
 * @Date 2025/10/22 20:37
 */
@Service
public class MemberOrdersImpl extends ServiceImpl<MemberOrderMapper, NursingProject> implements MemberOrdersService  {
    @Autowired
    private MemberOrderMapper memberOrderMapper;

    /**
     * 1.1 分页查询护理项目列表
     *
     * @param dto
     * @return
     */
    @Override
    public List<NursingProject> pagequery(MemberDto dto) {
        List<NursingProject> list = memberOrderMapper.pagequery(dto);
        return list;
    }
    @Override
    public NursingProject selectNursingProjectById(Long id) {
        return this.getById(id);
    }

}
